﻿<%@ Page Theme="BlueSkin" Title="" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="RegisteredCoursesEN.aspx.cs" Inherits="RegisteredCoursesEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <style type="text/css">
        .noheight
        {
            font-size:1px;
            height:1px;
            
        }
        
        .width10px
        {
            width:10px;
        }
        
        .containerDivMargins
        {
            margin: 0px 30px 0px 30px;
        }
    
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
               <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                <div class="floating">
                Registered Courses
                </div>
                
                <div class="clearing"></div>


            </td>
        </tr>


        <tr>
                        <td class="aligning">
                           

                            
                                            <p style="text-align:justify;margin-right:5px;margin-left:5px;">
                                                You can preview your training record and the courses status.  Also, you can print the certificate after completing the course.
                                            </p>
                                            
                                             <div class="clearing" style="height:5px;"></div>

                                            <div class="unfloating aligning direction">
                                                <a href='HelpVideo/RegisteredCoursesEN.swf' target="_blank" class="linktext">
                                                <asp:Label ID="lblVideo" runat="server" Font-Size="16px" >
                                                Help Video (New Courses And Registered Courses)
                                                </asp:Label>
                                                </a>
                                            </div>
                                            <div class="clearing" style="height:5px;"></div>
                                            <div class="unfloating aligning direction">
                                                <a href='HelpVideo/RegisteredCoursesEN2.swf' target="_blank" class="linktext">
                                                <asp:Label ID="lblVideo2" runat="server" font-size="16px">
                                                Help Video (View Completed Courses And Print Certificate)
                                                </asp:Label>
                                                </a>
                                            </div>

                                            <div class="clearing"></div>

                        </td>
                  </tr>

    </table>
    <br />
     <div class="allWidthWithMargins containerDivMargins" runat="server" id="dvShowLanguage">
             <div class="floating">
                    <asp:Label ID="lblLangaugeHead" runat="server" Text="Course Language"></asp:Label>    
             </div>
             
             <div class="floating noheight width10px"></div>           
            
            
            <div class="floating">
                <asp:DropDownList ID="ddlLanguage" runat="server" Width="245px" AutoPostBack="true" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>

            <div class="clearing" style="width:1px;height:10px;"></div>
        </div>

        <div class="clearing"></div>

    <div class="aligning allWidthWithMargins  direction" style="margin:0px 30px 30px 30px;">
        <asp:GridView ID="grdCourses" runat="server" AutoGenerateColumns="False" 
            Font-size="12px" AllowPaging="True" EnableModelValidation="True" 
            DataKeyNames="ID" OnRowDataBound="grdCourses_RowDataBound" 
            onpageindexchanging="grdCourses_PageIndexChanging" Width="840px" 
            onrowcommand="grdCourses_RowCommand">
            
            <HeaderStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />

            <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" >No Courses found</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>


            <Columns>
            
                

                <asp:TemplateField HeaderText="Course title" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                    <ItemTemplate>
                        <a href='<%# "./RegisterCourseEN.aspx?ID=" + Eval("ID") %>' target="_blank"><asp:Label runat="server" Text='<%# Eval("CourseNameEN") %>'></asp:Label></a>
                        
                    </ItemTemplate>
                
                    <HeaderStyle CssClass="gridRowStyle" />
                    <ItemStyle CssClass="gridRowStyle" />
                
                </asp:TemplateField>


                
                
                <asp:TemplateField HeaderText="Course type">
                <ItemTemplate>
                    <%# ((DatabaseComponent.Courses)(Container.DataItem)).objFolder.objMostParent.FolderNameEN %>
                </ItemTemplate>
                
                </asp:TemplateField>

                

               
               

                
                <asp:TemplateField HeaderText="Duration (HH:MM:SS)">
                    <ItemTemplate>
                        <%# GlobalVars.setSecounds((long)Eval("Duration")) %>
                    </ItemTemplate>
                
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Course Language">
                        <ItemTemplate>
                            
                            <asp:Label ID="lblLanguageName" runat="server" Text='<%# Eval("objLanguages.LanguageNameEN")%>'></asp:Label>

                        </ItemTemplate>
                    
                    </asp:TemplateField>
                
                
                <asp:TemplateField HeaderText="Course status">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                    
                    
                </asp:TemplateField>



                <asp:TemplateField HeaderText="Total spent time (HH:MM:SS)">
                <ItemTemplate>
                    <asp:Label ID="lblSpendTime" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                    
                    
                </asp:TemplateField>

                 <%--<asp:TemplateField HeaderText="Course details">
                <ItemTemplate>
                    <asp:HyperLink ID="hlShowDetails" runat="server" ToolTip="Show course details" NavigateUrl='<%# "RegisterCourseEN.aspx?ID=" + Eval("ID").ToString() %>' Target="_blank">Show details</asp:HyperLink>
                    
                </ItemTemplate>
                    
                    
                </asp:TemplateField>--%>

                <asp:TemplateField HeaderText="Action">
                    <ItemTemplate>
                        <asp:Panel ID="pnlStart" runat="server" >
                        
                         <asp:LinkButton runat="server" ID="lnkRestart" Visible="false" Text="Launch Again" CommandName="RefreshCourse" CommandArgument='<%# Eval("ID")  %>'></asp:LinkButton>
                        
                        </asp:Panel>                    
                    </ItemTemplate>
                
                
                </asp:TemplateField>
                
                
                
            </Columns>
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
        </asp:GridView>


    </div>


   


    <div class="clearing" style="height:5px;"></div>

    </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

